package com.kaifamiao.N0721;

public class Nde2 {
    public static void main(String[] args) {

        int[] num = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
        int[] copy = new int[10];

        //arraycopy(源数组，源数组的起始位置，目标数组，目标数组起始位置，长度)
        System.arraycopy(num, 0, copy, 0, 10);
        for (int i = 0; i < copy.length; i++) {
            System.out.println(copy[i]);
        }
    }
}
